import { Component, OnInit,Input, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'app-li-com',
  templateUrl: './li-com.component.html',
  styleUrls: ['./li-com.component.css']
})
export class LiComComponent implements OnInit {
    @Input() message:string
    @Output() upt=new EventEmitter<string>()
    constructor() { }

    ngOnInit() {
    }

    onClick(val,e){
        console.log('clicking in li-com')
        this.upt.emit(val)
    }

}
